package Classroom.A0510.extendsPra;

//父类
public class Peo {
    String name;

    int age;

    String sex;

    private double height;

    Peo() {
        System.out.println("父类构造执行");
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    void eat() {
        System.out.println(name + "该去吃饭了");
    }

    static void method() {
        System.out.println("父类的静态");
    }


    public static void main(String[] args) {
        //多态   参照  long   int  小范围数据自动转大范围
        Peo peo = new Peo();
        Peo peo2 = new Stu();
        Peo peo3 = new Programmer();

    }
}
